package net.example.model.event;

import net.example.model.common.ChatEventType;
import net.example.model.common.MessageFont;
import net.example.model.common.RichChatMessage;

public class SystemChatEvent extends ChatEvent{

    //系统消息
    public SystemChatEvent(String senderID,String msg,boolean isGroupChat)
    {
        RichChatMessage richChatMessage = new RichChatMessage();
        richChatMessage.setText(msg);
        richChatMessage.setFont(new MessageFont());
        this.groupID=senderID;
        this.msg=richChatMessage;
        this.type = ChatEventType.RichChatMessage;
        this.isSystemMsg=true;
        this.isGroupChat=isGroupChat;
    }
}
